import { h } from '../../lib/min-vue.esm.js'
import { foo } from './Foo.js'
window.self = null
export const App = {
  render() {
    window.self = this
    return h('div', {}, [
      h('div', {}, 'App'),
      h(foo, {
        onAdd(a) {
          console.log('App,onAdd', a)
        },
        onAddFoo(a) {
          console.log('App,onAddFoo', a)
        }
      })
    ])
  },

  setup() {
    return {
      msg: 'mini-vue-haha'
    }
  }
}
